﻿using System.Collections.Generic;
using Jayden.Dll.Core.Persistence;

namespace Jayden.Dll.Core.Membership
{
	public interface UserRoleDataAccess : DataAccess<UserRole>
	{
		List<UserRole> FindByUserName(string username);
		List<UserRole> FindByRoleName(string rolename);
		List<UserRole> FindByRoleName(string rolename, string usernameLike);
		UserRole Read(string username, string rolename);
		UserRole Create(string username, string rolename);
		void DeleteByUserName(string username);
		void DeleteByRoleName(string rolename);
		void Delete(string username, string rolename);
	}
}
